<?php
/**
 * Created by PhpStorm.
 * User: xsp
 * Date: 2018/4/16
 * Time: 7:52
 */

namespace backend\controllers;


use yii\web\Controller;

class IndexController extends Controller
{
public function actionIndex()
{
    var_dump(\Yii::$app->admin->isGuest);
    return $this->render('index');
}
}